<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script>
$('#wsnamenowpreedit').combobox({
    //url:'${ctx}/dd/getTreeMenu?id=402880e65590f4b90155910794000000',
    method:'get',
    valueField:'value',
    textField:'text',
    panelHeight:'100',
    editable:false,
    required:true,
    onSelect: function(rec){	        	
    	var aa=rec.value;
    	var bb=rec.text;
    	$('#wsnamenowedit').val(bb);
    	$('#wscodenowedit').val(aa);	   
    	 $('#wscolumenowedit').combobox('clear');
            var url = '${ctx}/Wsshare/getcolumns?wstype='+aa;
            $('#wscolumenowedit').combobox('reload', url);
    }
});

$('#workflowtypeedit').combobox({
    url:'${ctx}/dd/getTreeMenu?id=402880e459c8e16d0159c9405f35001a',
    method:'get',
    valueField:'value',
    textField:'text',
    panelHeight:'100',
    editable:false,
    required:true,
    onSelect: function(rec){
        var aa=rec.id;
        $('#wsnamenowpreedit').combobox('clear');
        $('#wsnametopreedit').combobox('clear');
        $('#wscolumenowedit').combobox('clear');
        $('#wscolumntoedit').combobox('clear');
        var url = '${ctx}/dd/getTreeMenu?id='+aa;
        $('#wsnamenowpreedit').combobox('reload', url);
        $('#wsnametopreedit').combobox('reload', url);
    }
});

$('#wsnametopreedit').combobox({
    //url:'${ctx}/dd/getTreeMenu?id=402880e65590f4b90155910794000000',
    method:'get',
    valueField:'value',
    textField:'text',
    panelHeight:'100',
    editable:false,
    required:true,
    onSelect: function(rec){	        	
    	var aa=rec.value;
    	var bb=rec.text;
    	$('#wsnametoedit').val(bb);
    	$('#wscodetoedit').val(aa);
    	 $('#wscolumntoedit').combobox('clear');
            var url = '${ctx}/Wsshare/getcolumns?wstype='+aa;
            $('#wscolumntoedit').combobox('reload', url);
    }
});

</script>

<form id="WsshareEdit_edit_form" method="post">
<input type="hidden" name="id"/>
	<table class="table">
		<tr colspan="2">
			<th>序号：</th>
			<td>
				<input type="text" id="ordernoedit" name="orderno"  class="easyui-numberbox" />

			</td>
			<th>案件类型</th>
			<td>
				<input type="text" id="workflowtypeedit" name="workflowtype" class="easyui-combobox"  style="width:300px;height:30px;"/>
			</td>
		</tr>
	
			<tr>
				<th>主文书：</th>
				<td><input type="text" id="wsnamenowpreedit"  class="easyui-combobox"  style="width:300px;height:30px;"/>
				<input type="text" id="wsnamenowedit" name="wsnamenow"  readonly="readonly" />
				<input type="hidden" id="wscodenowedit" name="wscodenow" />
				</td>
				<th>主文书列：</th>
				<td>
				<input type="text" id="wscolumenowedit" data-options='required:true, editable:false' name="wscolumenow" class="easyui-combobox"  style="width:300px;height:30px;"/>
				
				</td>
			</tr>
						<tr>
				<th>共享文书：</th>
				<td>
				<input type="text" id="wsnametopreedit" class="easyui-combobox"  style="width:300px;height:30px;"/>
                <input type="text" id="wsnametoedit" name="wsnameto"  readonly="readonly"/>
				<input type="hidden" name="wscodeto" id="wscodetoedit"/>
				</td>
				<th>共享文书列：</th>
				<td>
				<input type="text" id="wscolumntoedit" data-options='required:true, editable:false' name="wscolumnto" class="easyui-combobox"  style="width:300px;height:30px;"/>
				</td>
			</tr>

		</table>
</form>
